@import '../../../../style/aiui_mixin.scss';

.search-item-skeleton {
  width: 100%;
  padding: 15px 10px;
  border-bottom: 1px solid var(--hai-ui-layout-2);
  .search-item-title {
    width: 100%;
    height: 20px;
  }
  .search-item-content {
    margin-top: 10px;
    height: 46px;
  }
  .search-item-bottom {
    margin-top: 14px;
    min-height: 20px;
  }
}

.xtopic-search-list-item {
  @include aiui-text-primary;
  display: flex;
  padding: 15px 10px;
  border-bottom: 1px solid var(--hai-ui-layout-2);
  flex-direction: column;

  .title {
    @include aiui-h5;
    letter-spacing: 0.025em;
    min-height: 19px;
    word-break: break-word;
  }

  .post {
    padding-top: 10px;
    .post-content {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      margin-bottom: 0;
      @include aiui-paragraph-13;
      @include aiui-text-secondary;
    }
  }

  .reply-container {
    background-color: var(--hai-ui-layout-bg);
    padding: 10px;
    margin-left: 10px;
    margin-top: 10px;
    .reply-snapshot {
      @include aiui-ui-12;

      &:not(:first-child) {
        margin-top: 10px;
      }

      .reply-title {
        @include aiui-text-secondary;
      }

      .reply-content {
        padding-top: 5px;
        @include aiui-ui-14;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      }
    }
  }

  .other {
    display: flex;
    margin-top: 14px;
    min-height: 20px;
    @include aiui-text-secondary;
    .tags {
      flex: 1;
      margin-bottom: 0;
      line-height: 22px;
    }

    .right {
      @include aiui-ui-12;
      display: flex;
      align-items: center;
      span {
        display: inline-block;
      }
      .comment-count {
        text-align: right;
        // margin-right: 10px;
        min-width: 20px;
      }
      .created-at {
        margin-right: 40px;
      }
      .last-reply {
        margin-right: 30px;
      }

      & > svg {
        margin-right: 4px;
      }
    }
  }

  i-highlight {
    color: var(--hai-ui-blue4);
    font-weight: bold;
  }
}
